﻿<%@ Page Language="C#" CodeBehind="Orders.aspx.cs" Inherits="Yglu.WebAdmin.Orders_aspx" MasterPageFile="~/MainLayout.master" %>
<%@ MasterType TypeName="Yglu.WebAdmin.MainLayout_master" %>
<asp:Content ContentPlaceHolderID="MainContents" runat="server">
	<asp:Panel ID="PanDetails" runat="server">
		<fieldset class="FormField">
			<legend><asp:Literal meta:resourcekey="LitViewOrder" runat="server" /></legend>
			<ol>
				<li>
					<asp:Label CssClass="FormFieldPlainSpan" meta:resourcekey="LblOrderId" runat="server" />
					<asp:Label ID="LblOrderId" runat="server" />
				</li>
				<li>
					<asp:Label CssClass="FormFieldPlainSpan" meta:resourcekey="LblDateOrdered" runat="server" />
					<asp:Label ID="LblDateOrdered" runat="server" />,
					<asp:Label meta:resourcekey="LblDatePaid" runat="server" />
					<asp:Label ID="LblDatePaid" runat="server" />
				</li>
				<li>
					<asp:Label CssClass="FormFieldPlainSpan" meta:resourcekey="LblStoreTerminal" runat="server" />
					<asp:Label ID="LblStoreTitle" runat="server" />
					/
					<asp:Label ID="LblTerminal" runat="server" />
				</li>
				<li>
					<asp:Label CssClass="FormFieldPlainSpan" meta:resourcekey="LblUserFullName" runat="server" />
					<asp:Label ID="LblUserFullName" runat="server" />
				</li>
				<li>
					<asp:Label CssClass="FormFieldPlainSpan" meta:resourcekey="LblCustomer" runat="server" />
					<asp:Label ID="LblCustomer" runat="server" />
				</li>
				<li>
					<asp:Label CssClass="FormFieldPlainSpan" meta:resourcekey="LblPrice" runat="server" />
					<asp:Label ID="LblTotalPrice" runat="server" />
					-
					<asp:Label ID="LblDiscount" runat="server" />
					=
					<asp:Label ID="LblPricePaid" runat="server" />
				</li>
				<li>
					<asp:Label CssClass="FormFieldPlainSpan" meta:resourcekey="LblCombos" runat="server" />
					<br />
					<asp:Repeater ID="ListCombos" runat="server">
						<ItemTemplate>
							<%# DataBinder.Eval(Container.DataItem, "Id") %>
							-
							<%# DataBinder.Eval(Container.DataItem, "Summary") %>
							<br />
						</ItemTemplate>
					</asp:Repeater>
				</li>
			</ol>
			<div class="FormFooterBar">
				<asp:Button CssClass="FormButton" OnClick="ButBack_Click" CausesValidation="false" meta:resourcekey="ButBack" runat="server" />
				<asp:ValidationSummary CssClass="ValSummary" DisplayMode="List" ShowSummary="true" HeaderText="<%$ Resources:Messages,ValidationSummary %>" runat="server" />
			</div>
		</fieldset>
	</asp:Panel>
	<asp:Panel ID="PanGrid" runat="server">
		<asp:TextBox ID="TxtDateFrom" CssClass="FormText" Width="120px" meta:resourcekey="TxtDateFrom" runat="server" />
		-
		<asp:TextBox ID="TxtDateTo" CssClass="FormText" Width="120px" meta:resourcekey="TxtDateTo" runat="server" />
		<asp:Button ID="ButLoad" CssClass="FormButton ButtonAddNew" OnClick="ButLoad_Click" meta:resourcekey="ButLoad" runat="server" />
		<asp:GridView ID="GridOrders" OnRowCommand="GridOrders_RowCommand" runat="server">
			<Columns>
				<asp:BoundField DataField="Id" SortExpression="Id" ReadOnly="true" meta:resourcekey="GridColId" />
				<asp:BoundField DataField="DateOrdered" SortExpression="DateOrdered" ReadOnly="true" DataFormatString="{0:d}" meta:resourcekey="GridColDate" />
				<asp:BoundField DataField="StoreTitle" SortExpression="StoreTitle" ReadOnly="true" meta:resourcekey="GridColStore" />
				<asp:BoundField DataField="UserFullName" SortExpression="UserFullName" ReadOnly="true" meta:resourcekey="GridColUser" />
				<asp:BoundField DataField="Customer" SortExpression="Customer" ReadOnly="true"  meta:resourcekey="GridColCustomer" />
				<asp:BoundField DataField="TotalPrice" SortExpression="TotalPrice" ReadOnly="true" DataFormatString="{0:0.00}" meta:resourcekey="GridColTotalPrice" />
				<asp:BoundField DataField="Discount" SortExpression="TotalPrice" ReadOnly="true" DataFormatString="{0:0.00}" meta:resourcekey="GridColDiscount" />
				<asp:ButtonField AccessibleHeaderText="Edit" meta:resourcekey="GridColEdit" />
			</Columns>
		</asp:GridView>
	</asp:Panel>
</asp:Content>